//
//  AboutOurTwoViewController.m
//  DongChiDaChiProject1
//
//  Created by lanou3g on 15/11/4.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "AboutOurTwoViewController.h"

@interface AboutOurTwoViewController ()

@end

@implementation AboutOurTwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   // self.navigationItem.title = @"关于我们";
     [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithHue:0.1 saturation:0.3 brightness:1 alpha:1]];
    // Do any additional setup after loading the view.
   // self.view.backgroundColor = [UIColor redColor];
     self.view.backgroundColor = [UIColor whiteColor];
    UIImageView *myImage = [[UIImageView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    myImage.image = [UIImage imageNamed:@"guanyuwomen12.jpg"];
    [self.view addSubview:myImage];
//    CATransition *animation = [CATransition animation];
//    animation.duration = 1.5;
//    animation.type = @"rippleEffect";
//    animation.subtype = kCATransitionFromTop;
//    animation.timingFunction = UIViewAnimationOptionCurveEaseInOut;
//    [myImage.layer addAnimation:animation forKey:@"animation"];
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - kWidthFitParameter * 150) / 2 + 10 * kWidthFitParameter, 10 * kWidthFitParameter, 150 * kWidthFitParameter, 40 * kWidthFitParameter)];
    //label.backgroundColor = [UIColor redColor];
    label.text = @"关于我们";
    label.textAlignment = NSTextAlignmentCenter;
    label.textColor = [UIColor brownColor];
    label.font = [UIFont systemFontOfSize:25 * kWidthFitParameter];
    [myImage addSubview:label];
    
    UILabel *wenbenLabel = [[UILabel alloc] initWithFrame:CGRectMake(20 * kWidthFitParameter, label.bottom + 10 * kWidthFitParameter, kScreenWidth - 20 * kWidthFitParameter, 150 * kWidthFitParameter)];
    // wenbenLabel.backgroundColor = [UIColor whiteColor];
    wenbenLabel.text = @"本产品\n\n由北京懂吃达吃工作组制作";
    wenbenLabel.textAlignment = NSTextAlignmentCenter;
    wenbenLabel.textColor = [[UIColor brownColor] colorWithAlphaComponent:0.7];
    wenbenLabel.textAlignment = NSTextAlignmentCenter;
    wenbenLabel.numberOfLines = 0;
    wenbenLabel.font = [UIFont systemFontOfSize:20 * kWidthFitParameter];
    [myImage addSubview:wenbenLabel];
    
    
    
    
    [self addBar];
}

#pragma mark - 添加bar
- (void)addBar
{
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(returnToLast:)];
    leftItem.tintColor = [UIColor colorWithHue:0.8 saturation:1 brightness:0.7 alpha:1];
    self.navigationItem.leftBarButtonItem = leftItem;
    
    [self.navigationController.navigationBar setTranslucent:NO];
}

- (void)returnToLast:(UIBarButtonItem *)barItem
{
    [_delegate removePop];
    [self dismissViewControllerAnimated:NO completion:nil];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
